package com.insta.java.dto;

import java.io.Serializable;
import java.util.List;

public class UserDto implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6240366974749618582L;
	
	private Integer id;
	private String name;
	private String forname;
	private String login;
	private String password;
	private boolean isAdmin;
	private List<String> locations;
	
	public UserDto(){}
	
	public UserDto(String name, String forname, String login, String password) {
		super();
		this.name = name;
		this.forname = forname;
		this.login = login;
		this.password = password;
	}
	
	public UserDto(String name, String forname, String login, String password, boolean isAdmin) {
		this(name, forname, login, password);
		this.isAdmin = isAdmin;
	}

	public UserDto(Integer id, String name, String forname, String login, String password, boolean isAdmin) {
		super();
		this.id = id;
		this.name = name;
		this.forname = forname;
		this.login = login;
		this.password = password;
		this.isAdmin = isAdmin;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getForname() {
		return forname;
	}

	public void setForname(String forname) {
		this.forname = forname;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public boolean isAdmin() {
		return isAdmin;
	}

	public void setAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	public List<String> getLocations() {
		return locations;
	}

	public void setLocations(List<String> locations) {
		this.locations = locations;
	};	
	
}
